package com.hdu.careerplan.pojo.vo;

import com.hdu.careerplan.enums.StatusCode;

public class Result {

    public static ResultData success(Object data){
        return new ResultData(StatusCode.SUCCESS,data);
    }

    public static ResultData noContent(Object data) {
        return new ResultData(StatusCode.NO_CONTENT,data);
    }

    public static ResultData responseWithNonData(StatusCode statusCode) {
        return new ResultData(statusCode,null);
    }

    public static ResultData responseWithData(StatusCode statusCode, Object data) {
        return new ResultData(statusCode,data);
    }

}
